package cn.yitun.chat.yitunservercommonlib.converter.dto2po.group;

import cn.yitun.chat.yitunservercommonlib.dataentity.dto.group.GroupCategoryDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.po.group.GroupCategoryInfo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 群组分类
 */
@Mapper(componentModel = "spring")
public interface GroupCategoryDto2PoConverter {
    GroupCategoryDto2PoConverter INSTANCE = Mappers.getMapper(GroupCategoryDto2PoConverter.class);

    GroupCategoryDto do2dto(GroupCategoryInfo info);

    List<GroupCategoryDto> do2dto(List<GroupCategoryInfo> doList);

    @InheritInverseConfiguration
    GroupCategoryInfo dto2do(GroupCategoryDto dto);
    @InheritInverseConfiguration
    List<GroupCategoryInfo> dto2do(List<GroupCategoryDto> dtoList);
}
